#include <func.h>
#include "head.h"
int mysqlConnet(MYSQL *db){
    char *host = "localhost";
    char *user = "root";
    char *password = "123456";
    char *database = "netdisk_4";
    MYSQL *ret = mysql_real_connect(db, host, user, password, database, 0, NULL, 0);
    if(ret != NULL){
        printf("mysql connect success\n");
    }
    else{
        printf("Error: %s\n", mysql_error(db));
        exit(-1);
    }
}

